package com.neusoft.rental.po;

import java.util.Date;

//信息类
public class Information {
    private Integer id; //信息id
    private String userid; //用户id
    private String resource; //信息来源（目前仅有【系统提醒】这种来源）
    private String content; //信息内容
    private String time; //信息发送时间
    private Integer isTrue; //是否已被读取（已被读取和未被读取前端会不同的选择栏下）

    //如果构造函数不是全参数构造的话，那么查询的时候可能会报错,因为select查询，返回Information实例时，要使用到构造方法。
    public Information(Integer id,String userid, String resource, String content, String time, Integer isTrue) {
        this.id=id;
        this.userid = userid;
        this.resource = resource;
        this.content = content;
        this.time = time;
        this.isTrue = isTrue;
    }

    //get,set方法...

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getResource() {
        return resource;
    }

    public void setResource(String resource) {
        this.resource = resource;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Integer getIsTrue() {
        return isTrue;
    }

    public void setIsTrue(Integer isTrue) {
        this.isTrue = isTrue;
    }
}
